<?php
	include('public.php');
	$title='用户';
	$item=array('id','管理员名','管理员密码','管理员昵称','管理员电话','管理员电邮','管理员qq','管理员性别','登录时间','头像');
	$rs=db_select('adminuser','id,username,password,nickname,mobile,email,qq,sex,login_time,admin_portrait');
	//var_dump($rs);exit;
	foreach($rs AS $k=>$val){
		$rs[$k]['login_time']=time('Y-m-d H:i:s',$val['login_time']);
		
		//$rs[$k]['nickname']=substr($val['nickname'],0,2);
		$rs[$k]['nickname']=mb_substr($val['nickname'],0,2,'utf8');
	}
	
	include('template/header.html');
	include('template/adminuser_index.html');
	include('template/footer.html');